Skip to content

Fix privacy guard enforcement parity - #8

Merged
BunsDev merged 5 commits into
mainfrom
fix/privacy-guard-unblockers
Jul 29, 2026
Merged

Fix privacy guard enforcement parity#8
BunsDev merged 5 commits into
mainfrom
fix/privacy-guard-unblockers

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary

  • route full-history gitleaks scanning through the shared baseline-aware guard, including the default ruleset
  • enforce the checked-in gitleaks version in local and CI paths
  • centralize shell privacy patterns and verify them against gitleaks rule categories
  • block bare Beads Dolt sync commands in tracked agent instruction files

Verification

  • pnpm check
  • ./scripts/guard-scan.sh --staged
  • git diff --check

Draft while maintainer review is pending.

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven-memory Error Error Jul 29, 2026 11:53am

@BunsDev BunsDev changed the title fix: align privacy guard enforcement Fix privacy guard enforcement parity Jul 27, 2026
@BunsDev
BunsDev force-pushed the fix/privacy-guard-unblockers branch from c42c76f to 516e327 Compare July 27, 2026 18:27
@BunsDev
BunsDev requested a review from Copilot July 28, 2026 16:19
@BunsDev
BunsDev marked this pull request as ready for review July 28, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens “privacy guard” enforcement so local hooks and CI use the same baseline-aware gitleaks strategy (including default rules), pins the gitleaks version via a checked-in .gitleaks-version, centralizes shell privacy patterns, and prevents unguarded Beads Dolt sync commands from appearing in tracked agent-instruction files.

Changes:

  • Route both local hooks and CI through scripts/guard-scan.sh for baseline-aware gitleaks scanning, including a separate default-rules-only pass.
  • Pin and enforce the gitleaks version across local and CI using .gitleaks-version.
  • Centralize pattern/marker definitions in scripts/privacy-patterns.sh and add a policy test + instruction-surface guard for bare bd dolt push.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vitest.config.ts Excludes the new node-based guard policy test from Vitest discovery.
SECURITY.md Documents the new enforcement layering (default-rule pass, baseline-aware parity, version pin, centralized patterns).
scripts/privacy-patterns.sh Adds shared regex/marker constants for local guard + CI PR-diff scanning.
scripts/guard-scan.sh Enforces pinned gitleaks version and runs both Coven rules + default rules; sources shared patterns.
scripts/guard-policy.test.mjs Adds node:test coverage for guard parity, version pinning, pattern sharing, and instruction sync policy.
scripts/check-instruction-sync.sh Fails if instruction surfaces include executable bd dolt push guidance.
package.json Adds test:guard and check:instruction-sync; wires them into pnpm check.
AGENTS.md Replaces bare bd dolt push guidance with scripts/bd-dolt-push.sh.
.gitleaks-version Introduces the pinned gitleaks version used by both local guard and CI.
.gitleaks-default.toml Adds a default-rules-only gitleaks config for the second pass.
.github/workflows/privacy-guard.yml Installs gitleaks based on .gitleaks-version and delegates scanning to scripts/guard-scan.sh; sources shared patterns for PR diff scan.
.beads/interactions.jsonl Records bead status/history updates related to the work.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/guard-scan.sh
Comment thread scripts/privacy-patterns.sh Outdated
@BunsDev

BunsDev commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Maintainer review: still blocked before merge. The branch conflicts with current main, and the two existing Copilot findings are actionable: normalize gitleaks version output before comparing to .gitleaks-version, and replace the grep -E \b placeholder boundary with an ERE/portable boundary. Please resolve both and rebase/update the branch against main.

@BunsDev
BunsDev merged commit edde224 into main Jul 29, 2026
5 of 6 checks passed
@BunsDev
BunsDev deleted the fix/privacy-guard-unblockers branch August 2, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants